package com.sxhalo.fsms.service.impl;

import com.sxhalo.fsms.domain.DeviceRunningStateUpdateTime;
import com.sxhalo.fsms.domain.DeviceRunningStateUpdateTimeKey;
import com.sxhalo.fsms.mapper.DeviceRunningStateUpdateTimeMapper;
import com.sxhalo.fsms.service.IDeviceRunningStateUpdateTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class DeviceRunningStateUpdateTimeImpl implements IDeviceRunningStateUpdateTimeService {

	@Autowired
	private DeviceRunningStateUpdateTimeMapper mapper;
	
	@Override
	public Integer insertSelective(DeviceRunningStateUpdateTime record) {
		return mapper.insertSelective(record);
	}

	@Override
	public Integer updateByPrimaryKeySelective(DeviceRunningStateUpdateTime record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		return mapper.deleteByPrimaryKey((DeviceRunningStateUpdateTimeKey)key);
	}

	@Override
	public DeviceRunningStateUpdateTime selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey((DeviceRunningStateUpdateTimeKey)key);
	}

	@Override
	public List<DeviceRunningStateUpdateTime> findWhereList(String where, String order) {
		return mapper.findWhereList(where, order);
	}

	@Override
	public Integer getCount(String where) {
		return mapper.getCount(where);
	}

	@Override
	public List<DeviceRunningStateUpdateTime> findPagerList(Integer start, Integer length, String where, String order) {
		return mapper.findPagerList(start, length, where, order);
	}


	@Override
	public List<HashMap> totalDeviceState(String where) {
		return mapper.totalDeviceState(where);
	}



    @Override
	public List<HashMap> totalRunStateByDevice(String where) {
		return mapper.totalRunStateByDevice(where);
	}

	@Override
	public List<HashMap> totalRunStateByState(String where,String type,String date) {
		return mapper.totalRunStateByState(where, type,date);
	}
}
